/**
 * Created By  醉美柳舞之众星捧月
 * @author Song
 * @date 2018/6/7 15:28
 */
import {User, user} from 'src/LaLaLa/entity/User';
import {userService} from 'src/LaLaLa/service/UserService';

export class UserContrller {
    private static Mobile: number = 10086;
    private static Addr: string = "天府国际";

    public static MethodOne(): User {
        user.id = this.Mobile;
        user.name = this.Addr;
        user.age = 18;
        user.sex = "男";
        return user;
    }

    /**
     * Author song  醉美柳舞之众星捧月
     * Date & Time  2018/6/7 15:23
     * Description  修改用户姓名
     */
    public UpdataUserName(): User {
        return userService.updataUserName(user);
    }

    /**
     * Author song  醉美柳舞之众星捧月
     * Date & Time  2018/6/7 15:28
     * Description  修改用户年龄
     */
    public modifyUserAge(): User {
        userService.ModifyUserAge(user);
        return user;
    }
}